﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ServiceModel;
using Gman.WebApp.GestionServiceRef;
using Gman.Entity.Entities;
using Gman.WebApp.ServiceControllers;
using AutoMapper;

using System.Collections;

namespace Gman.WebApp.ServiceControllers
{
    public class OrdenDeTrabajoServiceController : ServiceControllerBase
    {

     public  OrdenTrabajoBE ObtenerOTXNro(OrdenTrabajoBE oItem){
            try
            {
                Request_OrdenTrabajo request = new Request_OrdenTrabajo(); 
                request.OrdenTrabajoDTO = oItem ;

                request.AccessToken = AccessToken;
                request.ClientTag = ClientTag;
                request.LoadOptions = new string[] { "ObtenerOTxNro" };
                 
                Response_OrdenTrabajo  response = GestionServiceClient.ObtenerOTxNro(request);


                return response.GetOrdenTrabajo;
            }
            catch (Exception ex)
            {
                throw new Exception("ConceptoBL.ObtenerConceptosXtipo()" + " - " + ex.Message + " - " + ex.InnerException, ex);
            } 
        
        
        }


    }
}
